home *** CD-ROM | disk | FTP | other *** search
/ Quarterdeck InternetSuite / Quarterdeck InternetSuite.iso / qsockpro.qip / CENCOM.MPS < prev    next >
Encoding:
Text File  |  1996-03-20  |  1.1 KB  |  56 lines

  1. # Quarterdeck Cen-Com SLIP & PPP script
  2. # Michael Bryant II  10/19/95
  3. # Modified 11/1/95 M. Bryant II
  4.  
  5. STRING username
  6. STRING password
  7. STRING IPaddress
  8. STRING framing
  9.  
  10. #TRACE ON
  11.  
  12. SetTimeout 60
  13.  
  14. # Get username from access method
  15. CfgGetValue "Username" username
  16. IF result = 0 THEN
  17.     ABORT "Can't load Username from qdeck.ini"
  18. ENDIF
  19.  
  20. # get password from access method
  21. CfgGetValue "Password" password
  22. IF result = 0 THEN
  23.     ABORT "Can't load Password from qdeck.ini"
  24. ENDIF
  25.  
  26. # get framing from access method
  27. CfgGetValue "Framing" framing
  28. IF result = 0 THEN
  29.     ABORT "Can't load Framing (SLIP or PPP) from qdeck.ini"
  30. ENDIF
  31.  
  32. DELAY 2
  33.  
  34. CommWaitFor     "sername"
  35.     CommSend username
  36.     CommSend "%r"
  37.  
  38. CommWaitFor     "assword"
  39.     CommSend password
  40.     CommSend "%r"
  41.  
  42. IF framing = "MPSLIP" THEN
  43.     CommWaitFor "command"
  44.     CommSend "slip%r"
  45.     CommWaitFor "our address is"
  46.         CommReadIPaddr IPAddress   # IP address should be next word
  47.         CfgSetValue    "IPAddress" IPaddress    # store the IP address
  48.     PRINT "IPAddress ="; IPAddress
  49. ELSE
  50.     CommSend "ppp%r"    
  51. ENDIF
  52.  
  53. DELAY 2
  54.  
  55. END
  56.